import request from '@/utils/request'

// 查询用户列表
export function listUserr(query) {
  return request({
    url: '/user/userr/list',
    method: 'get',
    params: query
  })
}

// 查询用户详细
export function getUserr(id) {
  return request({
    url: '/user/userr/' + id,
    method: 'get'
  })
}

// 新增用户
export function addUserr(data) {
  return request({
    url: '/user/userr',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateUserr(data) {
  return request({
    url: '/user/userr',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delUserr(id) {
  return request({
    url: '/user/userr/' + id,
    method: 'delete'
  })
}
